# Maintainer: Sam Stuewe <samuel.stuewe@gmail.com>
pkgname=enlighten
pkgver=0.9.2
pkgrel=1
pkgdesc="expressive, sysfs-based, backlight brightness manager"
url="https://github.com/halosghost/enlighten"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-doc"
makedepends="scdoc"
source="$pkgname-v$pkgver.tar.gz::https://github.com/halosghost/enlighten/archive/v$pkgver.tar.gz"

build() {
	make CONFIGURATION=release VER="v$pkgver" bin doc
}

check() {
	make CONFIGURATION=release check
}

package() {
	make CONFIGURATION=release PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="28c0c9c3324ca6ff15ede6ab4c65e45cf6acf55b5799f5ad0369b632cda7f1390a71a878eba30e7cc98b1a043697eedc8b2b1d7fb68d91ddcd8b74164a4bf7bf  enlighten-v0.9.2.tar.gz"
